import { HTTP } from "../../utils/http.js";

class ClueModel extends HTTP {
	// 线索列表
	getClueListApi(data) {
		return this.request({
			url: "/wx/student/list",
			data: data,
			method: 'GET'
		})
	}

	// 获取年级 
	getGrageListApi(data) {
		return this.request({
			url: "/student/gradeList",
			data: data,
		})
	}
	// 获取学生来源 
	getStudentSourceApi(data) {
		return this.request({
			url: "/system/dict/data/type/student_source",
			data: data,
			method: 'GET'
		})
	}
	// 获取学员创建人 
	getPeopleListApi(data) {
		return this.request({
			url: "/wx/Staff/peopleJobList",
			data: data,
			method: 'GET'
		})
	}
	// 保存线索
	getSaveClueApi(data) {
		return this.request({
			url: "/wx/student/save",
			data: data,
		})
	}
	// 删除线索
	deleteClueApi(data) {
		return this.request({
			url: "/wx/student/deleteClue",
			data: data,
		})
	}
	// 跟进人列表
	getListStaffApi(data) {
		return this.request({
			url: "/wx/Staff/listStaff",
			data: data,
			method: 'GET'
		})
	}
	// 分配跟进人 
	saveCounselorApi(data) {
		return this.request({
			url: "/wx/student/getCounselor",
			data: data,
		})
	}
}

export { ClueModel }